package gaggp
// #cgo LDFLAGS: -L . -lc_test -lstdc++
// #cgo CFLAGS: -I ./
// #include <stdio.h>
// #include <stdlib.h>
// #include "c.h"
import "C"
import (
  "unsafe"
)

func Gpgga(GpggaStr string) string {

  //cs := C.CString("$GPGGA,025620.00,2602.33721,N,11911.49176,E,2,04,1.63,13.5,M,9.9,M,,0000*5D");
  cs := C.CString(GpggaStr);

  //C.test(cs)
  gs :=C.test(cs)

  str := C.GoString(gs)
  C.free(unsafe.Pointer(cs))
  C.free(unsafe.Pointer(gs))
  //fmt.Println("get coordinate string: ",str)
  return str
}